public class Animal {
    //成员变量
    private String species;
    private String color;
    private String character;
    private int age;

    //空参 + 实参
    public Animal(){}
    public Animal(String species,String color,String character,int age)
    {
        this.species = species;
        this.color = color;
        this.character = character;
        this.age = age;
    }

    // set 和 get 方法
    public void setspecies(String species){
        this.species = species;
    }
    public String getspecies(){
        return species;
    }

    public void setcolor(String color){
        this.color = color;
    }
    public String getcolor(){
        return color;
    }

    public void setcharacter(String character){
        this.character = character;
    }
    public String getcharacter(){
        return character;
    }

    public void setage(int age){
        this.age = age;
    }
    public int getage(){
        return age;
    }

    public void action()
    {
        System.out.println("XXX");
    }
}
